package com.qf.erp_system_admin.service;

import com.qf.erp_system_admin.entity.User;
import com.qf.erp_system_admin.entity.UserVo;

import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * @author baishi Li
 * @date
 * @desc
 */
public interface UserService {
    boolean login(User user , HttpSession session);

    User getUserInfo(HttpSession session);

    void logout(HttpSession session);


    int del(int lgId);

    int add(User user);

    List<User> findAll(HashMap<String, String> map);

    int edit(User user);

    UserVo powerSelect(User user);

    String decryptStr(String password);

    void saveBatch(ArrayList<User> list);
}
